package com.heima.lock.sjms.模板模式;

/**
 * @author 陈辉
 * @data 2024 11:47
 */

public class Student extends EatTemplate{
    @Override
    protected void choise() {
        System.out.println("西红柿炒鸡蛋");
        System.out.println("锅包肉");
    }
}

class Teacher extends EatTemplate{

    @Override
    protected void choise() {
        System.out.println("青椒炒鸡蛋");
        System.out.println("红烧肉");
    }
}
